package com.tarena.lbs.message.web.controller;

import com.tarena.lbs.base.protocol.model.Result;
import com.tarena.lbs.message.web.service.DynamicFieldsService;
import com.tarena.lbs.pojo.message.vo.DynamicFieldsVO;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DynamicFieldsController {
    @Autowired
    private DynamicFieldsService dynamicFieldsService;
    @GetMapping("/admin/message/dynamicMsgFields/selectAll")
    public Result<List<DynamicFieldsVO>> selectAll(){
        List<DynamicFieldsVO> vos=dynamicFieldsService.selectAll();
        return new Result<>(vos);
    }
}
